-- GENERATED SPELL FOR [Murloc Hunter] --


function spell0_458(pUnit, Event) --@Summon Crawler,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(8656,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_458', 1, 1)
end

function spell1_458(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_458', 500, 1)
end

function Sorts_458(pUnit, Event)
local choix_sorts_458 = math.random(0, 1)
if choix_sorts_458 == 0 then
pUnit:RegisterEvent('spell0_458', 1, 1)
end
if choix_sorts_458 == 1 then
pUnit:RegisterEvent('spell1_458', 1, 1)
end
end

function mob458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_458', math.random(1500, 3000), 1)
end

function mob458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(458, 1, 'mob458_Action')
RegisterUnitEvent(458, 2, 'mob458_Leave')
RegisterUnitEvent(458, 3, 'mob458_Kill')
RegisterUnitEvent(458, 4, 'mob458_Die')
